package com.qf.iot;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;

/**
 * 管理员系统前端服务启动入口
 *
 * @author 千锋健哥
 */
@SpringBootApplication
@Slf4j
public class IotWebApplication extends SpringBootServletInitializer {

    /**
     * 启动类
     * @param args
     */
    public static void main(String[] args) {
        //1.启动
        SpringApplication.run(IotWebApplication.class,args);
        //2.输出
        log.info("项目启动成功");
    }

    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
        return builder.sources(this.getClass());
    }
}
